﻿#region Librerias

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
using System.IO;
using System.ServiceModel;
using System.Net.Security;

#endregion


namespace ESF.SFT.Service.Messages
{
	[MessageContract]
	public class FileUploadMessage
	{
		[MessageHeader]
		public string SessionTicket;
		
		[MessageHeader]
		public string FileName;

		[MessageHeader]
		public string UserName;
		
		[MessageHeader]
		public long FileLengthBytes;

		[MessageHeader]
		public string MD5Hash;

		[MessageHeader]
		public string IdentificationTypeCode;
				
		[MessageHeader]
		public string IdentificationNumber;

		[MessageHeader]
		public string ShortIdentificator;	

		// ProtectionLevel=ProtectionLevel.EncryptAndSign
		[MessageBodyMember (Order=8)]
		public Stream FileUploadContent;		
	}
}